import './index.scss'
import { createRoot } from 'react-dom/client'
import deMessages from "devextreme/localization/messages/zh.json"
import { locale, loadMessages } from "devextreme/localization"
import config from 'devextreme/core/config'
import { licenseKey } from './Config'

import { scan } from 'react-scan'
import App from './Router'

if (typeof window !== 'undefined') scan({ enabled: false, log: true })

config({ licenseKey })
loadMessages(deMessages)
locale('zh')

createRoot(document.getElementById('root')).render(<App />)